Component({
    data: {
        list: ["苹果🍎", "西瓜🍉", "香蕉🍌", "草莓🍓", "菠萝🍍", "哈密瓜🍈", "水蜜桃🍑", "椰子🥥", "葡萄🍇"],
        fruit: '',
        clickIndex: 0
    },
    methods: {
        handlerFruit(e) {
            // console.log(e);
            this.setData({
                fruit: e.target.dataset.item,
                clickIndex: e.currentTarget.dataset.index
            })
            // console.log(this.data.fruit);
            // console.log(this.data.clickIndex);
            this.triggerEvent('btnFruit', this.data.fruit)
        }
    }

})